import random

import pygame


class MainMenu:
    def __init__(self):
        self.caption = None
        self.setup_background()
        self.setup_cursor()
        self.setup_player()

    def setup_background(self):  # 设置底图
        self.caption = pygame.image.load(r"Img/title_screen.png").convert_alpha()
        self.caption = pygame.transform.scale(self.caption, (200, 100))

    def setup_player(self):  # 设置玩家
        pass

    def setup_cursor(self):  # 设置光标
        pass

    def update(self, surface):
        surface.blit(self.caption, (0, 0))
